package net.tautausan.plist
{
   public class ParseUtils
   {
       
      
      public function ParseUtils()
      {
         super();
      }
      
      public static function valueFromXML(param1:XML) : *
      {
         var _loc2_:* = undefined;
         switch(param1.name().toString())
         {
            case "array":
               _loc2_ = new PArray(param1);
               break;
            case "dict":
               _loc2_ = new PDict(param1);
               break;
            case "date":
               _loc2_ = new PDate(param1);
               break;
            case "string":
            case "data":
               _loc2_ = new PString(param1);
               break;
            case "true":
            case "false":
               _loc2_ = new PBoolean(param1);
               break;
            case "real":
            case "integer":
               _loc2_ = new PNumber(param1);
         }
         return _loc2_;
      }
   }
}
